//
//  ProductTakePict.h
//  Trading365
//
//  Created by Jason on 12-3-20.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "FileUploader.h"

typedef void (^PictureBeginBlcok)(NSDictionary *imgInfo,int typeFlag);//定义块类型EditBeginBlcok: 开始编辑时的回调

@interface ProductTakePict : UIViewController<FileUploaderDelegate>{
    bool caremaflag;
    int heightflag; 
    NSString *myTitle;
    PictureBeginBlcok pictureBeginBlcok;
    UIImage *caremaImage;
    NSDictionary *pictureInfo;
    int flagCameraPhotos;
    NSString *businessType,*businessID,*fileID;
    
}

@property (retain, nonatomic) IBOutlet UIImageView *_uImage;
@property (retain, nonatomic) IBOutlet UITextField *_uName;
@property (retain, nonatomic) IBOutlet UIActivityIndicatorView *_uActivityIndicator;
@property (nonatomic, retain) UIImage *caremaImage;

@property (retain, nonatomic) NSString *myTitle;
@property(nonatomic,assign)PictureBeginBlcok pictureBeginBlcok;
@property (retain, nonatomic) NSDictionary *pictureInfo;
@property (retain, nonatomic)NSString *businessType,*businessID,*fileID;

- (IBAction)reCameraPick:(id)sender;

-(void) takePicture:(int)type;

-(void) cameraPick;
-(void) photosAlbumPick;
-(void) photoLibraryPick;
- (void)savePic;
-(void)BackHome;

- (void)initPictureBeginBlcok:(PictureBeginBlcok)pictureBeginBlcok1;

-(void)setFlagCameraPhotos:(int)type;

@end
